﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Mysoft.Test.Entity
{
    public class VModel
    {
        [DisplayName("用户名")]
        [Required]
        [StringLength(10)]
        public string Name { set; get; }

        [DisplayName("年龄")]
        [Range(1, 9999)]
        public int Age { set; get; }

        [DisplayName("电子邮件")]
        [RegularExpression("^[a-zA-Z0-9]+@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$")]
        public string Email { set; get; }
    }
}
